//获取当前日期
function showToday(){
    var mydate = new Date();
    var years=mydate.getFullYear();
    var month=mydate.getMonth()+1;
    var day=mydate.getDate();
    if(month<10){var month="0"+month}
    if(day<10){var day="0"+day}
    var today=years+"-"+month+"-"+day;
    return today;
}
var todays=showToday();
console.log(todays)
function showNow(){
    var mydate = new Date();
    var years=mydate.getFullYear();
    var month=mydate.getMonth()+1;
    var day=mydate.getDate();
    var h=mydate.getHours();       //获取当前小时数(0-23)
    var m=mydate.getMinutes();
    if(month<10){var month="0"+month}
    if(day<10){var day="0"+day}
    if(h<10){var h="0"+h}
    if(m<10){var m="0"+m}
    var now=years+"-"+month+"-"+day+"T"+h+":"+m;
    return now;
}
var nows=showNow();
console.log(nows)
// 关闭弹窗
function alertClose(obj){
    $(obj).closest('.alert-cover-body').fadeOut(200)
}
function coverClose(obj){
    $(obj).fadeOut(200)
}
function eventStop(obj){
    event.stopPropagation()
}
function alertCloses(obj){
   window.location.href=window.location.href;
}
function coverCloses(obj){
    window.location.href=window.location.href;
}